﻿CREATE TRIGGER CustomerPhones_Tracking_Delete
ON [dbo].[CustomerPhones] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.CustomerPhones_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.CustomerPhones_Tracking s JOIN DELETED i
    ON s.PhoneID = i.PhoneID
END














